<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>社交网站动态管理页面集合</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/css/bootstrapbootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --success: #10B981;
      --danger: #EF4444;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .feed-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .feed-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-back {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-back:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 18px;
      cursor: pointer;
      margin-left: 15px;
      transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    /* 工具栏 */
    .feed-toolbar {
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
    }
    
    .toolbar-search {
      flex-grow: 1;
      position: relative;
      max-width: 240px;
    }
    
    .toolbar-search input {
      width: 100%;
      padding: 8px 12px 8px 36px;
      border-radius: 20px;
      border: 1px solid var(--border);
      font-size: 14px;
      background-color: var(--light);
      transition: all 0.2s ease;
    }
    
    .toolbar-search input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    }
    
    .toolbar-search i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--secondary);
      font-size: 14px;
    }
    
    .create-btn {
      padding: 8px 16px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }
    
    .create-btn i {
      margin-right: 6px;
    }
    
    .create-btn:active {
      transform: scale(0.95);
    }
    
    /* 分类栏 */
    .category-bar {
      padding: 0;
      background-color: var(--white);
      border-bottom: 1px solid var(--border);
      transition: all 0.3s ease;
    }
    
    .category-tabs {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
    }
    
    .category-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .category-tab {
      padding: 12px 20px;
      font-size: 15px;
      font-weight: 500;
      color: var(--secondary);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s ease;
      position: relative;
    }
    
    .category-tab.active {
      color: var(--primary);
    }
    
    .category-tab:hover {
      background-color: var(--light);
    }
    
    /* 动态列表 */
    .feed-list {
      flex-grow: 1;
      overflow-y: auto;
      transition: background-color 0.3s ease;
    }
    
    .feed-item {
      padding: 15px 20px;
      border-bottom: 1px solid var(--border);
      transition: background-color 0.2s ease, transform 0.2s ease;
      position: relative;
      overflow: hidden;
    }
    
    .feed-item:active {
      transform: scale(0.995);
    }
    
    .feed-header {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 10px;
      border: 2px solid transparent;
      transition: border-color 0.2s ease;
    }
    
    .user-info {
      flex-grow: 1;
    }
    
    .username {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 2px;
      display: inline-block;
    }
    
    .user-meta {
      font-size: 12px;
      color: var(--secondary);
      display: flex;
      align-items: center;
    }
    
    .user-meta i {
      font-size: 10px;
      margin: 0 4px;
    }
    
    .feed-menu {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s ease;
    }
    
    .feed-menu:hover {
      opacity: 1;
    }
    
    .feed-content {
      margin-bottom: 10px;
      font-size: 15px;
      line-height: 1.5;
    }
    
    .feed-media {
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 10px;
      position: relative;
    }
    
    .feed-image {
      width: 100%;
      display: block;
      transition: transform 0.3s ease;
    }
    
    .feed-item:hover .feed-image {
      transform: scale(1.02);
    }
    
    .media-count {
      position: absolute;
      right: 10px;
      bottom: 10px;
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 10px;
    }
    
    .feed-actions {
      display: flex;
      justify-content: space-around;
      padding-top: 5px;
    }
    
    .action-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 15px;
      cursor: pointer;
      padding: 5px 10px;
      border-radius: 4px;
      transition: all 0.2s ease;
      flex: 1;
    }
    
    .action-btn i {
      margin-right: 6px;
      font-size: 16px;
    }
    
    .action-btn:hover {
      background-color: var(--light);
    }
    
    .action-btn.liked {
      color: var(--danger);
    }
    
    .action-btn.commented {
      color: var(--primary);
    }
    
    .action-btn.shared {
      color: var(--success);
    }
    
    /* 评论区域 */
    .comments {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed var(--border);
    }
    
    .comment-item {
      padding: 6px 0;
      font-size: 14px;
    }
    
    .comment-author {
      font-weight: 600;
      margin-right: 6px;
    }
    
    .comment-text {
      color: var(--dark);
    }
    
    .comment-time {
      font-size: 12px;
      color: var(--secondary);
      margin-left: 5px;
    }
    
    .comment-actions {
      margin-left: 5px;
      font-size: 12px;
      color: var(--primary);
      cursor: pointer;
    }
    
    .add-comment {
      display: flex;
      align-items: center;
      margin-top: 10px;
    }
    
    .add-comment input {
      flex-grow: 1;
      padding: 8px 12px;
      border-radius: 20px;
      border: 1px solid var(--border);
      font-size: 14px;
      background-color: var(--light);
      transition: all 0.2s ease;
    }
    
    .add-comment input:focus {
      outline: none;
      border-color: var(--primary);
    }
    
    .add-comment button {
      margin-left: 8px;
      background: none;
      border: none;
      color: var(--primary);
      font-size: 18px;
      cursor: pointer;
    }
    
    /* 下拉刷新 */
    .refresh-control {
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--secondary);
      font-size: 14px;
    }
    
    .refresh-spinner {
      animation: spin 1s linear infinite;
      margin-right: 6px;
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    /* 空状态 */
    .empty-state {
      padding: 60px 20px;
      text-align: center;
      color: var(--secondary);
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .empty-icon {
      font-size: 60px;
      margin-bottom: 20px;
      opacity: 0.3;
      animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
      100% { transform: translateY(0px); }
    }
    
    .empty-text {
      font-size: 16px;
      margin-bottom: 20px;
    }
    
    .empty-action {
      padding: 10px 20px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .empty-action i {
      margin-right: 6px;
    }
    
    .empty-action:active {
      transform: scale(0.95);
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .category-tab.active {
      border-bottom: 3px solid var(--primary);
    }
    
    .style-1 .feed-item {
      transition: all 0.3s ease;
    }
    
    .style-1 .feed-item:hover {
      background-color: rgba(59, 130, 246, 0.03);
    }
    
    .style-1 .avatar:hover {
      border-color: var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background: linear-gradient(45deg, var(--primary), #F472B6);
      color: white;
      border-bottom: none;
      box-shadow: 0 2px 15px rgba(236, 72, 153, 0.2);
    }
    
    .style-2 .header-back,
    .style-2 .header-btn,
    .style-2 .page-title {
      color: white;
    }
    
    .style-2 .feed-item {
      border-radius: 12px;
      margin: 10px;
      border-bottom: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }
    
    .style-2 .feed-list {
      background-color: #FAFAFA;
      padding-top: 5px;
    }
    
    .style-2 .category-bar {
      background-color: white;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    }
    
    .style-2 .category-tab.active {
      color: var(--primary);
      font-weight: 600;
      position: relative;
    }
    
    .style-2 .category-tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background-color: var(--primary);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .feed-toolbar {
      background-color: white;
      margin: 10px;
      border-radius: 10px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      border-bottom: none;
    }
    
    .style-3 .category-tab {
      font-size: 14px;
      position: relative;
    }
    
    .style-3 .category-tab.active {
      font-weight: 600;
    }
    
    .style-3 .category-tab.active::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 8px;
      transform: translateY(-50%);
      width: 3px;
      height: 16px;
      border-radius: 3px;
      background-color: var(--primary);
    }
    
    .style-3 .feed-content {
      line-height: 1.6;
    }
    
    .style-3 .action-btn {
      color: var(--secondary);
      font-size: 14px;
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style5);
    }
    
    .style-4 .page-header {
      background-color: white;
      border-bottom: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .style-4 .feed-item {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .style-4 .feed-header {
      margin-bottom: 8px;
    }
    
    .style-4 .username {
      color: var(--primary);
    }
    
    .style-4 .feed-media {
      border-radius: 12px;
      overflow: hidden;
    }
    
    .style-4 .feed-actions {
      justify-content: flex-start;
      padding-left: 2px;
    }
    
    .style-4 .action-btn {
      flex: none;
      margin-right: 18px;
      font-size: 14px;
    }
    
    .style-4 .action-btn i {
      margin-right: 4px;
    }
    
    .style-4 .comments {
      background-color: rgba(249, 250, 251, 0.8);
      padding: 10px;
      border-radius: 8px;
      margin-top: 8px;
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .feed-item {
      padding: 18px 20px;
    }
    
    .style-5 .avatar {
      width: 40px;
      height: 40px;
      box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
    }
    
    .style-5 .user-meta {
      color: #9333EA;
      font-size: 12px;
    }
    
    .style-5 .feed-content {
      font-size: 15px;
      line-height: 1.5;
      color: #4C1D95;
    }
    
    .style-5 .feed-media {
      border-radius: 16px;
      margin: 12px 0;
      box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    }
    
    .style-5 .category-tab {
      font-weight: 500;
      color: #6B7280;
    }
    
    .style-5 .category-tab.active {
      color: var(--primary);
      font-weight: 600;
    }
    
    .style-5 .action-btn {
      color: #6B7280;
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-back,
    .style-6 .header-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .feed-item {
      border-bottom-color: var(--border);
    }
    
    .style-6 .feed-item:hover {
      background-color: rgba(255, 255, 255, 0.05);
    }
    
    .style-6 .feed-content {
      color: #E5E7EB;
    }
    
    .style-6 .toolbar-search input {
      background-color: var(--light);
      border-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    .style-6 .comments {
      border-top-color: var(--border);
    }
    
    .style-6 .comment-text {
      color: #E5E7EB;
    }
    
    .style-6 .add-comment input {
      background-color: var(--light);
      border-color: var(--border);
      color: var(--dark);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 滑动删除层 */
    .slide-delete {
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 80px;
      background-color: var(--danger);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 16px;
      cursor: pointer;
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }
    
    .slide-delete.active {
      transform: translateX(0);
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .action-btn span {
        display: none;
      }
      
      .action-btn i {
        margin-right: 0;
      }
      
      .create-btn span {
        display: none;
      }
      
      .create-btn i {
        margin-right: 0;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择动态管理样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 - 社交动态管理 -->
    <div class="feed-page active" id="page1">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">社交动态</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-bell-o"></i></button>
          <button class="header-btn"><i class="fa fa-user-o"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索动态...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>发布</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">关注</div>
          <div class="category-tab">推荐</div>
          <div class="category-tab">热门</div>
          <div class="category-tab">话题</div>
          <div class="category-tab">活动</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/64/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">科技前沿</div>
              <div class="user-meta">
                2小时前
                <i class="fa fa-globe"></i>
                公开
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            刚刚发布的最新AI模型性能太惊人了！不仅能生成逼真的图像，还能理解复杂的语义指令。这是我用它生成的城市景观图，你们觉得怎么样？#人工智能 #AI绘画
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/1031/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-heart-o"></i>
              <span>点赞(128)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论(32)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
          
          <div class="comments">
            <div class="comment-item">
              <span class="comment-author">数字生活</span>
              <span class="comment-text">这个效果真不错，是用什么模型生成的？</span>
              <span class="comment-time">1小时前</span>
              <span class="comment-actions">回复</span>
            </div>
            <div class="comment-item">
              <span class="comment-author">科技前沿</span>
              <span class="comment-text">是最新的Midjourney V5模型，确实比之前的版本提升很多</span>
              <span class="comment-time">45分钟前</span>
              <span class="comment-actions">回复</span>
            </div>
            
            <div class="add-comment">
              <input type="text" placeholder="添加评论...">
              <button><i class="fa fa-paper-plane-o"></i></button>
            </div>
          </div>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/26/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">旅行日记</div>
              <div class="user-meta">
                昨天 18:30
                <i class="fa fa-map-marker"></i>
                大理
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            大理的日落太美了！在洱海边静静地看着太阳慢慢落下，感觉所有的烦恼都消失了。推荐大家来体验一下这种宁静的美好。#大理旅行 #洱海
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/1036/800/500" alt="动态图片" class="feed-image">
            <div class="media-count">1/3</div>
          </div>
          
          <div class="feed-actions">
            <button class="action-btn liked">
              <i class="fa fa-heart"></i>
              <span>点赞(256)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论(48)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/91/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">美食家</div>
              <div class="user-meta">
                3天前
                <i class="fa fa-cutlery"></i>
                美食频道
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            今天给大家分享一道简单又美味的家常菜：番茄炖牛腩。用慢火炖制2小时，肉质软烂，汤汁浓郁，配上米饭简直是绝配！做法已经整理好放在评论区了~ #美食分享 #家常菜
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/292/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-heart-o"></i>
              <span>点赞(342)</span>
            </button>
            <button class="action-btn commented">
              <i class="fa fa-comment"></i>
              <span>评论(86)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 - 时尚社交动态 -->
    <div class="feed-page" id="page2">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">时尚圈</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-envelope-o"></i></button>
          <button class="header-btn"><i class="fa fa-camera"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索时尚话题...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>发布</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">穿搭</div>
          <div class="category-tab">美妆</div>
          <div class="category-tab">明星</div>
          <div class="category-tab">街拍</div>
          <div class="category-tab">新品</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/65/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">时尚达人</div>
              <div class="user-meta">
                3小时前
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            夏季穿搭灵感分享 🌸 今天尝试了一套清新的蓝色系搭配，阔腿裤+简约T恤，既舒适又显瘦。搭配一个亮色包包作为点缀，整体造型瞬间有了亮点！#夏季穿搭 #时尚搭配
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/342/800/500" alt="动态图片" class="feed-image">
            <div class="media-count">1/2</div>
          </div>
          
          <div class="feed-actions">
            <button class="action-btn liked">
              <i class="fa fa-heart"></i>
              <span>喜欢(523)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论(78)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/24/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">美妆博主</div>
              <div class="user-meta">
                昨天 10:15
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            夏日清透妆容教程 ✨ 重点是轻薄底妆和自然眼妆，搭配裸色系唇釉，清爽又持久。视频教程已经上传，喜欢的宝宝们可以去看看哦~ #美妆教程 #夏日妆容
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/177/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-heart-o"></i>
              <span>喜欢(389)</span>
            </button>
            <button class="action-btn commented">
              <i class="fa fa-comment"></i>
              <span>评论(102)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 - 生活方式动态 -->
    <div class="feed-page" id="page3">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">生活方式</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-leaf"></i></button>
          <button class="header-btn"><i class="fa fa-user-circle-o"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索生活灵感...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>分享</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">居家</div>
          <div class="category-tab">园艺</div>
          <div class="category-tab">手工</div>
          <div class="category-tab">美食</div>
          <div class="category-tab">健康</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/118/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">绿色生活</div>
              <div class="user-meta">
                今天 08:45
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            我的阳台小菜园又丰收了！这是今年第一批成熟的樱桃番茄，纯天然无农药，味道比超市买的好多了。种植小贴士：保持充足光照，适量浇水，定期修剪枝叶。#阳台种植 #有机蔬菜
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/118/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-heart-o"></i>
              <span>点赞(187)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论(42)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
        
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/493/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">健康饮食</div>
              <div class="user-meta">
                昨天 12:30
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            今日份健康午餐：藜麦蔬菜沙拉配烤鸡胸肉。营养均衡，低卡高蛋白，非常适合减脂期间食用。沙拉酱是用橄榄油、柠檬汁和少许蜂蜜调制的，清爽不腻~ #健康饮食 #减脂餐
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/493/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn liked">
              <i class="fa fa-heart"></i>
              <span>点赞(215)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论(36)</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 其他风格页面结构类似，省略以节省篇幅 -->
    <!-- 风格4：温暖橙 - 旅行社交动态 -->
    <div class="feed-page" id="page4">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">旅途见闻</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-compass"></i></button>
          <button class="header-btn"><i class="fa fa-camera"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索目的地...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>记录</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">国内</div>
          <div class="category-tab">国外</div>
          <div class="category-tab">美食</div>
          <div class="category-tab">攻略</div>
          <div class="category-tab">摄影</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <!-- 动态内容 -->
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/1061/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">环球旅行者</div>
              <div class="user-meta">
                2天前 <i class="fa fa-map-marker"></i> 日本·京都
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            京都的雨天别有一番韵味，古老的寺庙在雨中更显宁静。今天偶然发现一家隐藏在小巷里的抹茶甜品店，味道正宗到让人感动！#京都旅行 #日本美食
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/1061/800/500" alt="动态图片" class="feed-image">
            <div class="media-count">2/4</div>
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-heart-o"></i>
              <span>收藏</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 - 创意设计动态 -->
    <div class="feed-page" id="page5">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">创意灵感</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-lightbulb-o"></i></button>
          <button class="header-btn"><i class="fa fa-paint-brush"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索创意作品...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>发布</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">插画</div>
          <div class="category-tab">设计</div>
          <div class="category-tab">摄影</div>
          <div class="category-tab">手工</div>
          <div class="category-tab">DIY</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <!-- 动态内容 -->
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/160/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">插画师Luna</div>
              <div class="user-meta">
                昨天 15:40
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            最新完成的梦幻系列插画《星空下的舞蹈》，尝试了新的色彩搭配和构图方式。希望这种梦幻的氛围能带给大家宁静的感觉 ✨ #插画艺术 #原创设计
          </div>
          
          <div class="feed-media">
            <img src="https://picsum.photos/id/160/800/500" alt="动态图片" class="feed-image">
          </div>
          
          <div class="feed-actions">
            <button class="action-btn liked">
              <i class="fa fa-heart"></i>
              <span>喜欢</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>分享</span>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 - 职场社交动态 -->
    <div class="feed-page" id="page6">
      <div class="page-header">
        <button class="header-back"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">职场动态</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-briefcase"></i></button>
          <button class="header-btn"><i class="fa fa-user"></i></button>
        </div>
      </div>
      
      <div class="feed-toolbar">
        <div class="toolbar-search">
          <i class="fa fa-search"></i>
          <input type="text" placeholder="搜索行业资讯...">
        </div>
        <button class="create-btn">
          <i class="fa fa-plus"></i>
          <span>发布</span>
        </button>
      </div>
      
      <div class="category-bar">
        <div class="category-tabs">
          <div class="category-tab active">全部</div>
          <div class="category-tab">科技</div>
          <div class="category-tab">金融</div>
          <div class="category-tab">营销</div>
          <div class="category-tab">管理</div>
          <div class="category-tab">创业</div>
        </div>
      </div>
      
      <div class="feed-list">
        <div class="refresh-control">
          <i class="fa fa-refresh"></i>
          <span>下拉刷新</span>
        </div>
        
        <!-- 动态内容 -->
        <div class="feed-item">
          <div class="slide-delete">
            <i class="fa fa-trash"></i>
          </div>
          
          <div class="feed-header">
            <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="avatar">
            <div class="user-info">
              <div class="username">产品经理老张</div>
              <div class="user-meta">
                3小时前 · 产品总监 @科技公司
              </div>
            </div>
            <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
          </div>
          
          <div class="feed-content">
            分享一个产品上线前的检查清单：1. 用户体验测试 2. 性能压力测试 3. 数据埋点验证 4. 异常场景处理 5. 上线应急预案。做好这些准备工作，能大大降低上线风险。#产品管理 #职场经验
          </div>
          
          <div class="feed-actions">
            <button class="action-btn">
              <i class="fa fa-thumbs-o-up"></i>
              <span>赞同</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-comment-o"></i>
              <span>评论</span>
            </button>
            <button class="action-btn">
              <i class="fa fa-share"></i>
              <span>转发</span>
            </button>
          </div>
          
          <div class="comments">
            <div class="comment-item">
              <span class="comment-author">前端开发小李</span>
              <span class="comment-text">补充一点：浏览器兼容性测试也很重要，特别是针对不同版本的兼容性问题</span>
              <span class="comment-time">2小时前</span>
            </div>
            
            <div class="add-comment">
              <input type="text" placeholder="添加评论...">
              <button><i class="fa fa-paper-plane-o"></i></button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    let startX = 0;
    let currentX = 0;
    let isDragging = false;
    let currentItem = null;
    let refreshState = 0; // 0: 正常, 1: 下拉中, 2: 刷新中
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const feedPages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    const feedLists = document.querySelectorAll('.feed-list');
    const refreshControls = document.querySelectorAll('.refresh-control');
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化分类标签
      initCategoryTabs();
      
      // 初始化动态交互
      initFeedInteractions();
      
      // 初始化下拉刷新
      initPullToRefresh();
      
      // 初始化按钮事件
      initButtons();
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 初始化分类标签切换
    function initCategoryTabs() {
      document.querySelectorAll('.category-tab').forEach(tab => {
        tab.addEventListener('click', function() {
          // 移除同组所有标签的active类
          const tabContainer = this.parentElement;
          tabContainer.querySelectorAll('.category-tab').forEach(item => {
            item.classList.remove('active');
          });
          
          // 给当前点击的标签添加active类并添加动画
          this.classList.add('active');
          this.style.transform = 'scale(1.1)';
          setTimeout(() => {
            this.style.transform = 'scale(1)';
          }, 200);
        });
      });
    }
    
    // 初始化动态项交互
    function initFeedInteractions() {
      document.querySelectorAll('.feed-item').forEach(item => {
        // 滑动删除功能
        item.addEventListener('touchstart', handleTouchStart);
        item.addEventListener('touchmove', handleTouchMove);
        item.addEventListener('touchend', handleTouchEnd);
        
        // 鼠标事件（用于桌面预览）
        item.addEventListener('mousedown', handleMouseDown);
        item.addEventListener('mousemove', handleMouseMove);
        item.addEventListener('mouseup', handleMouseUp);
        item.addEventListener('mouseleave', handleMouseUp);
      });
    }
    
    // 触摸开始事件
    function handleTouchStart(e) {
      startX = e.touches[0].clientX;
      currentX = startX;
      isDragging = true;
      currentItem = this;
      
      // 重置滑动状态
      const slideDelete = this.querySelector('.slide-delete');
      slideDelete.classList.remove('active');
      this.style.transform = 'translateX(0)';
    }
    
    // 触摸移动事件
    function handleTouchMove(e) {
      if (!isDragging) return;
      
      currentX = e.touches[0].clientX;
      const diffX = currentX - startX;
      
      // 只允许向左滑动
      if (diffX < 0) {
        const slideDistance = Math.min(-diffX, 80);
        currentItem.style.transform = `translateX(-${slideDistance}px)`;
        
        // 显示删除按钮
        const slideDelete = currentItem.querySelector('.slide-delete');
        if (slideDistance > 40) {
          slideDelete.classList.add('active');
        } else {
          slideDelete.classList.remove('active');
        }
      }
    }
    
    // 触摸结束事件
    function handleTouchEnd() {
      if (!isDragging) return;
      
      isDragging = false;
      const diffX = currentX - startX;
      const slideDelete = currentItem.querySelector('.slide-delete');
      
      // 判断是否需要完全显示删除按钮
      if (diffX < -40) {
        currentItem.style.transform = 'translateX(-80px)';
        slideDelete.classList.add('active');
      } else {
        currentItem.style.transform = 'translateX(0)';
        slideDelete.classList.remove('active');
      }
      
      // 添加删除按钮点击事件
      slideDelete.addEventListener('click', function() {
        if (confirm('确定要删除这条动态吗？')) {
          currentItem.style.height = currentItem.offsetHeight + 'px';
          currentItem.style.overflow = 'hidden';
          currentItem.style.transition = 'all 0.3s ease';
          currentItem.style.transform = 'translateX(100%)';
          
          setTimeout(() => {
            currentItem.remove();
          }, 300);
        }
      });
    }
    
    // 鼠标按下事件（桌面预览）
    function handleMouseDown(e) {
      startX = e.clientX;
      currentX = startX;
      isDragging = true;
      currentItem = this;
      
      // 阻止默认行为以避免文本选择
      e.preventDefault();
      
      // 重置滑动状态
      const slideDelete = this.querySelector('.slide-delete');
      slideDelete.classList.remove('active');
      this.style.transform = 'translateX(0)';
    }
    
    // 鼠标移动事件（桌面预览）
    function handleMouseMove(e) {
      if (!isDragging) return;
      
      currentX = e.clientX;
      const diffX = currentX - startX;
      
      // 只允许向左滑动
      if (diffX < 0) {
        const slideDistance = Math.min(-diffX, 80);
        currentItem.style.transform = `translateX(-${slideDistance}px)`;
        
        // 显示删除按钮
        const slideDelete = currentItem.querySelector('.slide-delete');
        if (slideDistance > 40) {
          slideDelete.classList.add('active');
        } else {
          slideDelete.classList.remove('active');
        }
      }
    }
    
    // 鼠标释放事件（桌面预览）
    function handleMouseUp() {
      if (!isDragging) return;
      
      isDragging = false;
      const diffX = currentX - startX;
      const slideDelete = currentItem.querySelector('.slide-delete');
      
      // 判断是否需要完全显示删除按钮
      if (diffX < -40) {
        currentItem.style.transform = 'translateX(-80px)';
        slideDelete.classList.add('active');
      } else {
        currentItem.style.transform = 'translateX(0)';
        slideDelete.classList.remove('active');
      }
    }
    
    // 初始化下拉刷新
    function initPullToRefresh() {
      feedLists.forEach((list, index) => {
        let startY = 0;
        let currentY = 0;
        let isPulling = false;
        const refreshControl = refreshControls[index];
        
        list.addEventListener('touchstart', function(e) {
          // 只有在列表顶部时才能下拉刷新
          if (list.scrollTop <= 0) {
            startY = e.touches[0].clientY;
            currentY = startY;
            isPulling = true;
            refreshState = 0;
          }
        });
        
        list.addEventListener('touchmove', function(e) {
          if (!isPulling || refreshState === 2) return;
          
          currentY = e.touches[0].clientY;
          const diffY = currentY - startY;
          
          // 只允许向下拉动
          if (diffY > 0) {
            // 阻止页面滚动
            e.preventDefault();
            
            refreshState = 1;
            const pullDistance = Math.min(diffY, 80);
            refreshControl.style.height = pullDistance + 'px';
            
            // 改变刷新提示文本
            if (pullDistance > 50) {
              refreshControl.innerHTML = '<i class="fa fa-refresh refresh-spinner"></i><span>松开刷新</span>';
            } else {
              refreshControl.innerHTML = '<i class="fa fa-refresh"></i><span>下拉刷新</span>';
            }
          }
        });
        
        list.addEventListener('touchend', function() {
          if (!isPulling || refreshState === 2) return;
          
          isPulling = false;
          const diffY = currentY - startY;
          
          if (diffY > 50) {
            // 执行刷新
            refreshState = 2;
            refreshControl.innerHTML = '<i class="fa fa-refresh refresh-spinner"></i><span>刷新中...</span>';
            
            // 模拟刷新过程
            setTimeout(() => {
              refreshControl.style.height = '50px';
              refreshControl.innerHTML = '<i class="fa fa-check"></i><span>刷新成功</span>';
              
              // 恢复正常状态
              setTimeout(() => {
                refreshControl.style.height = '50px';
                refreshControl.innerHTML = '<i class="fa fa-refresh"></i><span>下拉刷新</span>';
                refreshState = 0;
              }, 1000);
              
              // 添加新动态
              addNewFeedItem(list);
            }, 1500);
          } else {
            // 未达到刷新条件，恢复原状
            refreshControl.style.height = '50px';
            refreshState = 0;
          }
        });
      });
    }
    
    // 添加新动态项
    function addNewFeedItem(list) {
      // 创建新动态元素
      const newItem = document.createElement('div');
      newItem.className = 'feed-item';
      newItem.style.opacity = '0';
      newItem.style.transform = 'translateY(-20px)';
      newItem.style.transition = 'all 0.3s ease';
      
      // 随机选择一个用户头像和内容
      const userIds = [64, 26, 91, 65, 24];
      const randomUserId = userIds[Math.floor(Math.random() * userIds.length)];
      const contents = [
        "刚刚完成了一个重要项目，感觉特别有成就感！感谢团队的支持与配合。#工作日常 #团队合作",
        "分享一本最近在读的好书，内容非常启发思考，推荐给大家！#读书分享 #自我提升",
        "今天尝试了新的健身课程，虽然很累但很有效果，坚持下去！#健康生活 #运动打卡"
      ];
      const randomContent = contents[Math.floor(Math.random() * contents.length)];
      const imageIds = [1031, 1036, 292, 342, 177];
      const randomImageId = imageIds[Math.floor(Math.random() * imageIds.length)];
      
      newItem.innerHTML = `
        <div class="slide-delete">
          <i class="fa fa-trash"></i>
        </div>
        
        <div class="feed-header">
          <img src="https://picsum.photos/id/${randomUserId}/200/200" alt="用户头像" class="avatar">
          <div class="user-info">
            <div class="username">新动态用户</div>
            <div class="user-meta">
              刚刚
            </div>
          </div>
          <button class="feed-menu"><i class="fa fa-ellipsis-h"></i></button>
        </div>
        
        <div class="feed-content">
          ${randomContent}
        </div>
        
        <div class="feed-media">
          <img src="https://picsum.photos/id/${randomImageId}/800/500" alt="动态图片" class="feed-image">
        </div>
        
        <div class="feed-actions">
          <button class="action-btn">
            <i class="fa fa-heart-o"></i>
            <span>点赞</span>
          </button>
          <button class="action-btn">
            <i class="fa fa-comment-o"></i>
            <span>评论</span>
          </button>
          <button class="action-btn">
            <i class="fa fa-share"></i>
            <span>分享</span>
          </button>
        </div>
      `;
      
      // 添加到列表顶部
      const firstChild = list.querySelector('.feed-item');
      if (firstChild) {
        list.insertBefore(newItem, firstChild);
      } else {
        list.appendChild(newItem);
      }
      
      // 添加动画效果
      setTimeout(() => {
        newItem.style.opacity = '1';
        newItem.style.transform = 'translateY(0)';
      }, 50);
      
      // 绑定事件
      newItem.addEventListener('touchstart', handleTouchStart);
      newItem.addEventListener('touchmove', handleTouchMove);
      newItem.addEventListener('touchend', handleTouchEnd);
      newItem.addEventListener('mousedown', handleMouseDown);
      newItem.addEventListener('mousemove', handleMouseMove);
      newItem.addEventListener('mouseup', handleMouseUp);
      newItem.addEventListener('mouseleave', handleMouseUp);
      
      // 初始化按钮事件
      initButtonEvents(newItem);
    }
    
    // 初始化按钮事件
    function initButtons() {
      document.querySelectorAll('.feed-item').forEach(item => {
        initButtonEvents(item);
      });
    }
    
    // 为单个动态项初始化按钮事件
    function initButtonEvents(item) {
      // 返回按钮
      const backButtons = item.closest('.feed-page')?.querySelector('.header-back');
      if (backButtons) {
        backButtons.addEventListener('click', function() {
          alert('返回上一页');
        });
      }
      
      // 创建/发布按钮
      const createButtons = item.closest('.feed-page')?.querySelector('.create-btn');
      if (createButtons) {
        createButtons.addEventListener('click', function() {
          alert('发布新动态');
        });
      }
      
      // 点赞按钮
      const likeButton = item.querySelector('.action-btn .fa-heart-o, .action-btn .fa-heart, .action-btn .fa-thumbs-o-up');
      if (likeButton) {
        likeButton.parentElement.addEventListener('click', function(e) {
          e.stopPropagation();
          this.classList.toggle('liked');
          
          if (this.classList.contains('liked')) {
            if (this.querySelector('.fa-heart-o')) {
              this.innerHTML = '<i class="fa fa-heart"></i><span>点赞(+1)</span>';
            } else if (this.querySelector('.fa-thumbs-o-up')) {
              this.innerHTML = '<i class="fa fa-thumbs-up"></i><span>赞同(+1)</span>';
            }
          } else {
            if (this.querySelector('.fa-heart')) {
              this.innerHTML = '<i class="fa fa-heart-o"></i><span>点赞</span>';
            } else if (this.querySelector('.fa-thumbs-up')) {
              this.innerHTML = '<i class="fa fa-thumbs-o-up"></i><span>赞同</span>';
            }
          }
        });
      }
      
      // 评论按钮
      const commentButton = item.querySelector('.action-btn .fa-comment-o, .action-btn .fa-comment');
      if (commentButton) {
        commentButton.parentElement.addEventListener('click', function(e) {
          e.stopPropagation();
          const commentsSection = item.querySelector('.comments') || createCommentsSection(item);
          commentsSection.scrollIntoView({ behavior: 'smooth' });
          commentsSection.querySelector('input').focus();
        });
      }
      
      // 分享按钮
      const shareButton = item.querySelector('.action-btn .fa-share');
      if (shareButton) {
        shareButton.parentElement.addEventListener('click', function(e) {
          e.stopPropagation();
          alert('分享功能：可以分享到微信、微博等平台');
        });
      }
      
      // 评论输入框
      const commentInput = item.querySelector('.add-comment input');
      if (commentInput) {
        commentInput.addEventListener('keydown', function(e) {
          if (e.key === 'Enter' && this.value.trim() !== '') {
            e.preventDefault();
            addNewComment(item, this.value.trim());
            this.value = '';
          }
        });
      }
      
      // 评论发送按钮
      const commentSend = item.querySelector('.add-comment button');
      if (commentSend) {
        commentSend.addEventListener('click', function() {
          const input = item.querySelector('.add-comment input');
          if (input.value.trim() !== '') {
            addNewComment(item, input.value.trim());
            input.value = '';
          }
        });
      }
    }
    
    // 创建评论区域（如果不存在）
    function createCommentsSection(item) {
      const feedActions = item.querySelector('.feed-actions');
      const comments = document.createElement('div');
      comments.className = 'comments';
      comments.innerHTML = `
        <div class="add-comment">
          <input type="text" placeholder="添加评论...">
          <button><i class="fa fa-paper-plane-o"></i></button>
        </div>
      `;
      
      item.insertBefore(comments, feedActions.nextSibling);
      
      // 绑定事件
      const commentInput = comments.querySelector('input');
      commentInput.addEventListener('keydown', function(e) {
        if (e.key === 'Enter' && this.value.trim() !== '') {
          e.preventDefault();
          addNewComment(item, this.value.trim());
          this.value = '';
        }
      });
      
      const commentSend = comments.querySelector('button');
      commentSend.addEventListener('click', function() {
        if (commentInput.value.trim() !== '') {
          addNewComment(item, commentInput.value.trim());
          commentInput.value = '';
        }
      });
      
      return comments;
    }
    
    // 添加新评论
    function addNewComment(item, text) {
      const commentsSection = item.querySelector('.comments');
      const commentList = commentsSection.querySelector('.comment-list') || createCommentList(commentsSection);
      
      const newComment = document.createElement('div');
      newComment.className = 'comment-item';
      newComment.style.opacity = '0';
      newComment.style.transform = 'translateY(10px)';
      newComment.style.transition = 'all 0.3s ease';
      
      newComment.innerHTML = `
        <span class="comment-author">我</span>
        <span class="comment-text">${text}</span>
        <span class="comment-time">刚刚</span>
        <span class="comment-actions">回复</span>
      `;
      
      commentList.insertBefore(newComment, commentList.firstChild);
      
      // 添加动画
      setTimeout(() => {
        newComment.style.opacity = '1';
        newComment.style.transform = 'translateY(0)';
      }, 50);
      
      // 更新评论按钮状态
      const commentButton = item.querySelector('.action-btn:has(.fa-comment-o), .action-btn:has(.fa-comment)');
      if (commentButton) {
        commentButton.classList.add('commented');
        if (commentButton.querySelector('.fa-comment-o')) {
          commentButton.innerHTML = '<i class="fa fa-comment"></i><span>评论(+1)</span>';
        }
      }
    }
    
    // 创建评论列表容器
    function createCommentList(commentsSection) {
      const commentList = document.createElement('div');
      commentList.className = 'comment-list';
      commentsSection.insertBefore(commentList, commentsSection.firstChild);
      return commentList;
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(feedPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      feedPages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
